<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>会员登录 - 人才系统</title>
<base href="${base}"/>
<link rel="shortcut icon" href="favicon.ico" />
<link href="styles/user.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.9.1.js"></script>
</head>
<script type="text/javascript">
/**
 * 登录
 */
	function loginUser(){
		 $.ajax({
			url : "/user/login",
			type : "post",
			dataType : "JSON",
			data : $("#loginForm").serialize(),
			success : function(data) {
				var vo = data;
				if (vo.code == 200) {
					alert(vo.meg);
					location.href = "";
				} else {
					alert(vo.meg);
				}
			}

		}); 
	}
</script>
<body>
	<jsp:include page="../header.jsp"></jsp:include>
	<div class="login_bg">
		<div class="login_box">
			<div class="login_boxin">
				<form id="loginForm" action="" method="post">
					<div class="tit">会员登录</div>
					<div class="login_err"></div>
					<table width="100%" border="0" align="center" cellpadding="5"
						cellspacing="0">

						<tr>
							<td width="55" align="right" id="account">帐号：</td>
							<td><input name="account" type="text" class="login_input"
								id="username" maxlength="30" value="" placeholder="用户名/邮箱/手机号"
								style="color: #999999" /></td>
						</tr>
						<tr>
							<td align="right">密码：</td>
							<td><input name="password" type="password"
								class="login_input" id="password" maxlength="20" placeholder="请输入密码" /></td>
						</tr>
						<tr>
							<td align="right">&nbsp;</td>
							<td><div style="position: relative;">
									<label><input type="checkbox" name="expire" id="expire"
										value="10" /> 一周内自动登录</label>
								</div></td>
						</tr>
					</table>
					<table width="100%" border="0" align="center" cellpadding="5"
						cellspacing="0">
						<tr>
							<td align="right" width="50">&nbsp;</td>
							<td height="40" valign="top">
								<div style="position: relative;">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="100">
											<input type="button" name="submitlogin" id="login" class="but80" value="登录" onclick="loginUser()" /></td>
											<td class="link_bk"><a href="getpass.jsp">忘记密码？</a></td>
										</tr>
									</table>
								</div>
							</td>
						</tr>
						<tr>
							<td align="right" style="border-top: 1px #E8E8E8 solid">&nbsp;</td>
							<td height="20" class="link_lan"
								style="border-top: 1px #E8E8E8 solid">还没有账号？<a
								href="jsp/register.jsp">免费注册</a></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<jsp:include page="../footer.jsp"></jsp:include>
</body>
</html>
